/*****************************************************************************
*
* File: delays.c
* 
* Copyright S. Brennen Ball, 2006-2007
* 
* The author provides no guarantees, warantees, or promises, implied or
*	otherwise.  By using this software you agree to indemnify the author
* 	of any damages incurred by using it.
* 
*****************************************************************************/

//This code depends on a clock frequency of 40 MHz.

#include "board.h"
#include <libpic30.h>
#include "delays.h"

void DelayUS(unsigned long microseconds)
{
    __delay_us(microseconds);
}

void DelayMS(unsigned long milliseconds)
{
    __delay_ms(milliseconds);
}

void DelayS(unsigned long seconds)
{
    __delay_ms(seconds * 1000);
}
